package Week6;

public class Circle implements Geometry {
	//A circle is defined with a radius.
	
	protected Point pt;
	protected double rad;
		
	public Circle(Point pt, double rad){
		this.pt = pt;
		this.rad = rad;
	}
	
	public double computeArea(){
		double area = Math.PI*Math.pow(rad, 2);
		return area;
	}

	public double computeLength() {
		double length = 2*Math.PI*rad;
		return length;
	}

	public int computeDimension() {
		return 2;
	}

	public double getRad() {
		return rad;
	}

	public void setRad(double rad) {
		this.rad = rad;
	}

	public Point getPt() {
		return pt;
	}

	public void setPt(Point pt) {
		this.pt = pt;
	}
	
	
}
